
Imports System.Data


Public Interface dbUtil

    ' private padre As Windows.Forms.Form


    Function buscarConexion(ByVal tipoBd As Integer, ByVal directorio As String, ByVal usuario As String, ByVal clave As String, ByVal servidor As String, ByVal puerto As String) As System.Data.Common.DbConnection


    ' para sql server
    Function getTables(ByRef con As System.Data.Common.DbConnection) As Boolean


    ' para mysql
    Function getTables(ByRef con As System.Data.Common.DbConnection, ByVal database As String) As Boolean


    Function getFields(ByRef conexion As System.Data.Common.DbConnection, ByVal database As String) As Boolean


    Function getForeignKeys(ByRef conexion As System.Data.Common.DbConnection, ByVal database As String) As Boolean


    Function getDatabases(ByRef con As System.Data.Common.DbConnection)


End Interface
